<?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'Gondolat Forradalma',
    'language'=>'hu',
	// preloading 'log' component
	'preload'=>array( 'bootstrap'),

	// autoloading model and component classes
	'import'=>array(
		'application.models.*',
		'application.components.*',
	),
    
    'theme' => 'gf',

	'modules'=>array(
		// uncomment the following to enable the Gii tool
		
		'gii'=>array(
			'class'=>'system.gii.GiiModule',
			'password'=>'pass',
            'generatorPaths'=>array('bootstrap.gii'),
		 	// If removed, Gii defaults to localhost only. Edit carefully to taste.
			'ipFilters'=>array('127.0.0.1','::1'),
		),
		
	),

	// application components
	'components'=>array(
		'user'=>array(
			// enable cookie-based authentication
			'allowAutoLogin'=>true,
		),
        
     
        'bootstrap'=>array(
            'class'=>'ext.bootstrap.components.Bootstrap', // assuming you extracted bootstrap under extensions            
            'coreCss'=>true,
        ),
	
		'urlManager'=>array(
            'urlFormat'=>'path',
            'showScriptName'=>false,
            'caseSensitive'=>false,		
			'rules'=>array(
				'<controller:\w+>/<id:\d+>'=>'<controller>/view',                
				'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
				'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',        
                       
                'admin'=>'program/admin',
                'gallery/album/<id:\d+>/<title:\w+>'=>'gallery/album',
                'tagok'=>'member/index',
                'csatlakozz'=>'site/contact',
                'jelentkezz'=>'site/contact',
			),
		),

		'db'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=gf',
			'emulatePrepare' => true,
			'username' => 'gf',
			'password' => 'gf',
			'charset' => 'utf8',
            'enableProfiling'=>true,
            'enableParamLogging'=>true,
		),
		
		'errorHandler'=>array(
			// use 'site/error' action to display errors
            'errorAction'=>'site/error',
        ),
		'log'=>array(
            'class'=>'CLogRouter',
            'routes'=>array(
                array(
                    'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
                    'ipFilters'=>array(gethostbyname('localhost'), '::1'),                   
                ),
            ),
        ),
	),

	// application-level parameters that can be accessed
	// using Yii::app()->params['paramName']
	'params'=>array(
		
        'users' => array('admin'=>''),
        'picasa.user.id' => '',
        'google.api.key' => '',
		//'adminEmail'=>'gf@gondolatforradalma.hu',
        'adminEmail'=>'',
	),
);